//题型管理列表。
Ext.define("ES.view.itemtypes.ItemTypesList",{
    extend:"Ext.grid.Panel",
    alias:"widget.ItemTypesTabList",
    closable:true,
    title:"题型管理",
    store:"ItemTypesStore",
    sortableColumns:false,
    selType:"checkboxmodel",
    multiSelect:true,
    frame:true,
    layout:{
        type:"fit",
        align:"stretch"
    },
    viewConfig:{
        forceFit:true,
        columnLines:true,
        stripRows:true
    },
    tbar:{
        xtype:"toolbar",
        height:36,
        items:["题型代码：",{
            xtype:"textfield",
            width:168
        },"题型名称：",{
            xtype:"textfield",
            width:168
        }," ",{
            xtype:"button",
            action:"btnQuery",
            iconCls:'search-trigger-icon',
            text:"检索",
            tooltip:"检索数据"
        },"->",{
            xtype:"button",
            action:"btnAdd",
            iconCls:"add-icon",
            text:"新增",
            tooltip:"新增题型"
        },"-",{
            xtype:"button",
            action:"btnDelete",
            iconCls:"delete-icon",
            text:"删除",
            tooltip:"删除数据" 
        }]
    },
    bbar:[{
        xtype:"pagingtoolbar",
        store:"ItemTypesStore",
        displayInfo:true    
    }],
    columns:[{
        header:"序号",
        width:32,
        align:"right",
        xtype:"rownumberer"     
    },{
        text:"题型代码",
        width:98,
        align:"left",
        menuDisabled:true,
        sortable:false,
        dataIndex:"typeCode" 
    },{
        text:"题型名称",
        width:128,
        align:"left",
        menuDisabled:true,
        sortable:false,
        dataIndex:"typeName"  
    },{
        text:"解析类名",
        width:168,
        flex:1,
        align:"left",
        menuDisabled:true,
        sortable:false,
        dataIndex:"analysisClass" 
    },{
        text:"反解析类名",
        width:168,
        flex:1,
        align:"left",
        menuDisabled:true,
        sortable:false,
        dataIndex:"antianalyticClass"
    },{
        text:"JS编辑类",
        width:168,
        flex:1,
        align:"left",
        menuDisabled:true,
        sortable:false,
        dataIndex:"jsEditClass" 
    }],
    initComponent:function(){
        this.callParent(arguments);
    }
})